﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LbangCMS.ViewModels
{
    public class IndexModel
    {
        public string About { get; set; }

        public List<IndexProductModel> Products { get; set; }

        public string Address { get; set; }

        public string Phone { get; set; }

        public string Zipcode { get; set; }

        public List<IndexNewsModel> News { get; set; }

        public List<BannerModel> Banners { get; set; }

    }

    public class IndexProductModel
    {
        public int ID { get; set; }
        public string ProductName { get; set; }
        public string ImageSrc { get; set; }
    }

    public class IndexNewsModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public bool IsMain { get; set; }
        public string ImageSrc { get; set; }
        public string Summary { get; set; }
        public string PublishTime { get; set; }
    }

    public class BannerModel
    {
        public string Sign { get; set; }
        public string Title { get; set; }
        public string ImageSrc { get; set; }
        public string LinkUrl { get; set; }
        public int SortIndex { get; set; }
    }
}
